package com.jingyanzi.privilege.service;

import com.jingyanzi.privilege.domain.OrgDO;
import com.jingyanzi.privilege.domain.result.ResultDO;
import com.jingyanzi.privilege.query.OrgQueryDO;


public interface IOrgService {
	
	public boolean isNodeOrg(Integer id);
	
	public boolean isRoot(Integer id);

	public ResultDO add(OrgDO groupDO);
	
	public ResultDO remove(Integer id, Integer moveId);
	
	public ResultDO modifi(OrgDO groupDO);
	
	//public ResultDO moveOrg(Integer srcId, Integer desId);
	
	public ResultDO getOrgReverseList(Integer orgId);
	
	public ResultDO getOrgAllNode(Integer groupId);
	
	public ResultDO get(Integer id);
	
	public ResultDO getOrgList(Integer orgId);
	
	public ResultDO query(OrgQueryDO query);
}
